package com.cjq.bean;

import java.sql.Timestamp;
import java.util.Objects;

public class BootStrapTableUser {

    private Integer id;
    private String userName;
    private String userPhone;
    private String password;
    private String createTime;
    private String loginTime;

    public BootStrapTableUser() {
    }

    public BootStrapTableUser(Integer id, String userName, String userPhone, String password, String createTime, String loginTime) {
        this.id = id;
        this.userName = userName;
        this.userPhone = userPhone;
        this.password = password;
        this.createTime = createTime;
        this.loginTime = loginTime;
    }

    @Override
    public String toString() {
        return "BootStrapTableUser{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", password='" + password + '\'' +
                ", createTime='" + createTime + '\'' +
                ", loginTime='" + loginTime + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BootStrapTableUser that = (BootStrapTableUser) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(userName, that.userName) &&
                Objects.equals(userPhone, that.userPhone) &&
                Objects.equals(password, that.password) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(loginTime, that.loginTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, userName, userPhone, password, createTime, loginTime);
    }
}
